package cn.formaggie.entity.model.order;

import java.util.Date;
import java.util.List;

public class Order {
    private Integer id;
    private String code;
    private Date indate;
    private String remark;
    private Boolean isfinish;
    private Boolean isout;
    private Boolean ispay;
    private Customer customer;
    private List<OrderItem> orderItemList;

    public Order() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getIndate() {
        return indate;
    }

    public void setIndate(Date indate) {
        this.indate = indate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Boolean getIsfinish() {
        return isfinish;
    }

    public void setIsfinish(Boolean isfinish) {
        this.isfinish = isfinish;
    }

    public Boolean getIsout() {
        return isout;
    }

    public void setIsout(Boolean isout) {
        this.isout = isout;
    }

    public Boolean getIspay() {
        return ispay;
    }

    public void setIspay(Boolean ispay) {
        this.ispay = ispay;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public List<OrderItem> getOrderItemList() {
        return orderItemList;
    }

    public void setOrderItemList(List<OrderItem> orderItemList) {
        this.orderItemList = orderItemList;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", indate=" + indate +
                ", remark='" + remark + '\'' +
                ", isfinish=" + isfinish +
                ", isout=" + isout +
                ", ispay=" + ispay +
                ", customer=" + customer +
                ", orderItemList=" + orderItemList +
                '}'+"\n";
    }
}
